Answer 1.7
Robert Maresh
TI-83 Basic
Description: converts a real number into a string.
Contents: Readme.txt, Convert.txt, Answer1.7.83p
Size of prgmANSWER is 346 bytes.

Instructions: Send Answer 1.7 to your calculator. This is the syntax for
Answer:

[Number]:prgmANSWER

So if we typed this:

50.08:prgmANSWER

answer would convert the number to "050.08" and store it to Str1.

Information:

Answer is a sample program that shows how a real number can be converted into
a string. It works with all real numbers, -9e99 to 9e99, and all decimals.
This program has many practical applications for basic programmers.
Answer is meant only to show how it is possible to convert one data type to
another in Basic.  For more information on how it works, see Convert.txt.
Feel free to change and modify this program, and you don't even have to give
me credit!  Oh, by the way, the advantage of having a number stored in a
string (or a Y-variable) is that it saves memory, if the number is small.
Here is an example:

{7,8,9,10}->L1	;takes up 45 bytes
"7 8 9 10"->r1	;takes up 16 bytes

The reason for this is that the TI-OS Keeps about 15 bytes for each number
placed in memory, whether it be in a real number, matrix, or a list, even if
it only takes up one byte: 5 in the ti's memory might be this:5.0000000000000
Stupid, right?  For more information, see Convert.txt.

Changes since version 1.0:

	-17 bytes smaller (4 percent)
	-Answer 1.2 included, which converts a list of integers into a string
	-instead of returning "50" for the number 50, now it gives you "050".

Changes since version 1.1:

	-10 bytes smaller.
	-faster.

Changes since version 1.3:

	-several rare glitches fixed.
	-smaller.
	-faster.
	-other minor improvements.

url:	http://www.homestead.com/kevtiva/ticalc.html
email:	kevtiva@netzero.net
	TicalcMan@yahoo.com